package fr.afcepf.atod19.authentification.service;

import javax.ws.rs.GET;
import javax.ws.rs.Path;



import javax.ws.rs.PathParam;

import fr.afcepf.atod19.authentification.dao.IDAOAuthentification;

@Path("/authentification/")
public class ServiceAuthentification implements IServiceAuthentification {
	
	
	private IDAOAuthentification daoAuthentification;
	
	
	public void setDaoAuthentification(IDAOAuthentification daoAuthentification) {
		this.daoAuthentification = daoAuthentification;
	}


	@Path("{login}/{password}")
	@GET
	public boolean authentifier(@PathParam("login")String login, @PathParam("password")String password) {
		return daoAuthentification.authentifier(login, password);
	}

}
